package com.yuke.cloud.service.cmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.api.cmc.dto.CmsCouponGoodsDto;
import com.yuke.cloud.service.cmc.dto.CmsCouponSpecDto;
import com.yuke.cloud.service.cmc.entity.CmsCouponSpec;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmsCouponSpecMapper extends MyMapper<CmsCouponSpec> {

    List<CmsCouponSpecDto>  getBindingGoods(Long couponId);
    List<CmsCouponSpecDto> getGoodsList(@Param("cmsCouponSpecDto")CmsCouponSpecDto cmsCouponSpecDto);
    void deleteBoundGoods(Long specId);
    void  deleteBoundGoodsList(@Param("list") List<Long> list);

    List<CmsCouponGoodsDto>  getCouponGoodsByCouponId(@Param("couponId")Long couponId);
}